package com.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 秒杀优惠券实体类
 */
@Data
@TableName("seckill_voucher")
public class SeckillVoucher {

    @TableId
    private Long voucherId; // 关联的优惠券的id

    @TableField("stock")
    private Integer stock; // 库存

    @TableField("create_time")
    private LocalDateTime createTime; // 创建时间

    @TableField("begin_time")
    private LocalDateTime beginTime; // 生效时间

    @TableField("end_time")
    private LocalDateTime endTime; // 失效时间

    @TableField("update_time")
    private LocalDateTime updateTime; // 更新时间

}
